package com.ruoyi.mall.service;

import com.ruoyi.mall.domain.Customer;
import com.ruoyi.mall.domain.vo.CustomerVo;
import com.ruoyi.mall.domain.bo.CustomerBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * 会员信息Service接口
 *
 * @author ruoyi
 * @date 2024-04-24
 */
public interface ICustomerService {

    /**
     * 查询会员信息
     */
    CustomerVo queryById(Long customerId);

    /**
     * 查询会员信息列表
     */
    TableDataInfo<CustomerVo> queryPageList(CustomerBo bo, PageQuery pageQuery);

    /**
     * 查询会员信息列表
     */
    List<CustomerVo> queryList(CustomerBo bo);

    /**
     * 新增会员信息
     */
    Boolean insertByBo(CustomerBo bo);

    /**
     * 填充用户信息并更新登录用户状态
     * @param customer
     */
    void fillCustomerInfo(Customer customer);

    /**
     * 修改会员信息
     */
    Boolean updateByBo(CustomerBo bo);

    /**
     * 校验并批量删除会员信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 查询会员列表
     * @return
     */
    public List<Customer> selectCustomerList(Customer customer);

    /**
     * 查询会员信息
     *
     * @param customerId 会员信息主键
     * @return 会员信息
     */
    public Customer selectCustomerByCustomerId(Long customerId);

}
